package com.zshy.base.monitor.domain.contract.command;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 发送文件消息(需要配合文件上传接口)
 * {
 * "msgtype": "file",
 * "file": {
 * "media_id": "3a8asd892asd8asd"
 * }
 * }
 *
 * @author zhouhengzhe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SendMessageByFileCommand {

    /**
     * 文件id，通过下文的文件上传接口获取
     */
    @NotBlank(message = "文件id不能为空")
    private String mediaId;

}
